package com.bilibili.form;

import com.bilibili.enumeration.RegisterType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("注册用户表单对象")
@Data
public class RegisterForm {

    @ApiModelProperty("手机号")
    private String phone;
    @ApiModelProperty("邮箱")
    private String email;
    @ApiModelProperty(value = "验证码", required = true)
    @NotBlank(message = "验证码不能为空")
    private String verifyCode;
    @ApiModelProperty(value = "注册类型", required = true)
    @NotNull(message = "注册类型不能为空")
    private RegisterType type;

}
